<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    img{
        vertical-align: middle;
    }
    div{
        /*line-height: 240px;*/
        font-size: 0;
    }
    span{
        font-size: 1em;
    }
    </style>
</head>
<body>
    <div style="background-color:green;">
        <img src="mm1.jpg">
        <span style="background: red;">zxx</span>
    </div>
</body>
</html>